package it.valeandre.omino.model;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Locale;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root
public class Item {

	
	private static final DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss Z", new Locale("IT"));

	@Element(required = false)
	public String title;

	@Element(required = false)
	public String link;

	@Element(required = false)
	public String description;

	@Element(required = false)
	public Enclosure enclosure;

	@Element(required = false)
	public String category;

	@Element(required = false)
	public String pubDate;

	@Element(required = false)
	public String guid;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Enclosure getEnclosure() {
		return enclosure;
	}

	public void setEnclosure(Enclosure enclosure) {
		this.enclosure = enclosure;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getPubDate() {
		return pubDate;
	}

	public void setPubDate(String pubDate) {
		this.pubDate = pubDate;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public static DateFormat getFormatter() {
		return formatter;
	}

	
	
}
